<div style="padding: 30px">
    <div class="product-price-group">
        <span class="price regular-price">￥<span id="dr_sku_price">{dr_sku_price($price_sku, 2, ' ~ ')}</span>元</span>
    </div>


    <div class="form-option">
        {loop $price_sku['group'] $gid $gname}
        {if $gname}
        <div class="form-group row">
            <label class="col-md-3 control-label fc-sku-group-html">{$gname}</label>
            <div class="col-md-7 fc-sku-select-price">
                {php $i=0;}
                {loop $price_sku['name'][$gid] $vid $vname}
                <button type="button" fvalue="{$gid}_{$vid}" class="fc-sku-value btn {if $i==$sku_value[$gid]}red{/if} btn-default btn-xs">{$vname}</button>
                {php $i=1;}
                {/loop}
            </div>
        </div>
        {/if}
        {/loop}
        <input type="hidden" id="dr_sku_value" value="">
        {loop $price_sku['value'] $i $v}
        <input type="hidden" id="dr_sku_sn_{$i}" value="{$v.sn}">
        <input type="hidden" id="dr_sku_price_{$i}" value="{number_format($v.price,2)}">
        <input type="hidden" id="dr_sku_quantity_{$i}" value="{$v.quantity}">
        {/loop}

        <div class="form-group row">
            <label class="col-md-3 control-label fc-sku-group-html">库存剩余</label>
            <div class="col-md-7">
                <span id="dr_sku_quantity">  </span>件
            </div>
        </div>

    </div>

</div>




<script type="text/javascript" src="{THEME_PATH}assets/js/sku.js"></script>
<script type="text/javascript">
    $(function () {
        dr_select_sku_price();
        dr_get_sku_price();
    })
</script>